/**
 * 
 */
package easyservice.protocol;


/**
 * 
 * 
 * @author Rodrigo Barbosa Lira
 *
 */
public class ResponseCommand extends SyncCommand {
	
	private String value;

	/**
	 * @param value
	 */
	public ResponseCommand(String value) {
		this.value = value;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
	
	/* (non-Javadoc)
	 * @see easyservice.protocol.AbstractCommand#generatedString()
	 */
	@Override
	public String generatedString() {
		StringBuffer generatedString = new StringBuffer("# " + CommandEnum.RESPONSE + " ");
		generatedString.append(this.getValue());		
		return generatedString.toString();
	}

}
